package com.arajuuri.catinvaders;

import java.awt.Graphics2D;
import java.awt.event.KeyEvent;


/**
 * <p>Title: Cat Invaders</p>
 * <p>Description: A space invaders clone with cats</p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author Semi Arajuuri
 * @version 1.0
 */

public interface GraphicalObject {
  public void draw(Graphics2D g2d);
  public void keyPressEvent(KeyEvent e);
  public void keyReleaseEvent(KeyEvent e);
  public void addSpeed(int s);
  public void addGravity(int g);
  public void setToStart();
  public void move();
  public void hide();
  public boolean isHidden();
  public void show();
  public boolean detectCollision(int x, int y);
  public void setCoordinates(int x, int y);
  public int getX();
  public int getY();
  public int getHeight();
}
